package me.zhengjie.modules.system.converter;


import me.zhengjie.modules.system.domain.entity.*;
import me.zhengjie.modules.system.domain.req.*;
import me.zhengjie.modules.system.domain.rsp.*;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author wushanshan
 * @date 2024/5/20 15:28
 */
@Mapper(componentModel = "spring")
public interface MachineConverter {


    MachineConverter INSTANCE = Mappers.getMapper(MachineConverter.class);


    SysUserIdentityCard sysUserIdentityCardReqDTOTo(SysUserIdentityCardReqDTO reqDTO);

    SysUserIdentityCardRspDTO sysUserIdentityCardToRsp(SysUserIdentityCard sysUserIdentityCard);

    SysUserBankCard sysUserBankCardReqDTOTo(SysUserBankCardReqDTO reqDTO);

    SysUserBankCardRspDTO sysUserBankCardToRsp(SysUserBankCard sysUserBankCard);

    SysUserBusiness sysUserBusinessReqDTOTo(SysUserBusinessReqDTO reqDTO);

    SysUserBusinessRspDTO sysUserBusinessToRsp(SysUserBusiness sysUserBusiness);

    SysUserMerchant sysUserMerchantReqDTOTo(SysUserMerchantReqDTO reqDTO);

    SysUserMerchantReqDTO sysUserMerchantDTOToReq(SysUserMerchant sysUserMerchant);


    SysUserMerchantRspDTO sysUserMerchantToRsp(SysUserMerchant sysUserMerchant);

    Brand brandReqDTOTo(BrandReqDTO reqDTO);

    BrandRspDTO brandToRsp(Brand brand);

    ProductsLine productsLineReqDTOTo(ProductsLineReqDTO reqDTO);

    ProductsLineRspDTO productsLineToRsp(ProductsLine productsLine);

    BrandProductsLine brandProductsLineReqDTOTo(BrandProductsLineReqDTO reqDTO);

    BrandProductsLineRspDTO brandProductsLineToRsp(BrandProductsLine brandProductsLine);

    CheckRecords checkRecordsReqDTOTo(CheckRecordsReqDTO reqDTO);

    CheckRecordsRspDTO checkRecordsToRsp(CheckRecords checkRecords);
}
